package com.sunny.design.decorator.login;

/**
 * @author Sunny
 * @date 2020/1/12
 */
public class LoginForTelephonyDecorator extends SignInForThirdDecorator {

    protected LoginForTelephonyDecorator(ISignInService signInService) {
        super(signInService);
    }

    public ResultMsg login(String telephony, String code) {
        ResultMsg login = super.login(telephony, code);
        login.setMsg("使用Telephony" + login.getMsg());
        return login;
    }

    public ResultMsg register(String telephony, String code) {
        ResultMsg register = super.register(telephony, code);
        register.setMsg("使用Telephony" + register.getMsg());
        return register;
    }
}
